<%--
  Created by IntelliJ IDEA.
  User: cnprinces
  Date: 13-1-21
  Time: 下午12:36
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%><%@ include file="/include.inc.jsp"%>

<div class="pageContent">
    <form method="post" action="/management!addUser" class="pageForm required-validate"onsubmit="return validateCallback(this, dialogAjaxDone)">
        <input type="hidden" name="user.id" value="${user.id}"/>
        <input type="hidden" name="user.password" value="${user.password}"/>
        <div class="pageFormContent" layoutH="56">
            <p>
                <label>员工姓名：</label>
                <input name="user.ename" class="required" type="text" size="30" value="${user.ename}" />
            </p>
            <%--<p>
                <label>员工账户名：</label>
                <input name="user.username" class="required" type="text" size="30" value="${user.username}" />
            </p>--%>
            <p>
                <label>性别：</label>
                <select class="combox" name="user.sex">
                    <option value="男" <c:if test="${user.sex=='男'}">selected="true" </c:if>>男</option>
                    <option value="女" <c:if test="${user.sex=='女'}">selected="true" </c:if>>女</option>
                </select>
            </p>
            <p>
                <label>联系电话：</label>
                <input name="user.phone" class="phone" type="text" size="30" alt="请输入数字" value="${user.phone}"/>
            </p>

            <p>
                <label>邮件：</label>
                <input type="text"  value="${user.email}" name="user.email" class="textInput">
            </p>

            <p>
                <label>qq号码：</label>
                <input name="user.qq" class="digits" type="text" size="30" alt="请输入数字" value="${user.qq}"/>
            </p>

            <p>
                <label>住址：</label>
                <input name="user.address" class="required" type="text" size="30" value="${user.address}" />
            </p>

            <p>
                <label>岗位名称：</label>
                <select name="user.positionId" class="combox">
                    <option value="0"> - </option>
                    <c:forEach items="${list}" var="res">
                        <option value="${res.id}"  <c:if test="${res.id==user.positionId}"> selected="true" </c:if>>${res.gorupName}</option>
                    </c:forEach>
                </select>
            </p>

            <p>
                <label>身份证号码：</label>
                <input name="user.idCard" class="required" type="text" size="30" value="${user.idCard}"  minlength="17" maxlength="20" />
            </p>

            <p>
                <label>入职时间：</label>
                <input type="text" name="user.inductionDate" class="date" size="30" value="${user.inductionDate}"/><a class="inputDateButton"
                                                                             href="javascript:;">选择</a>
            </p>

            <p>
                <label>是否离职：</label>
                <select class="combox" name="user.status">
                    <option value="0" <c:if test="${user.sex=='0'}">selected="" </c:if>>在职</option>
                    <option value="1" <c:if test="${user.sex=='1'}">selected="" </c:if>>离职</option>
                </select>
            </p>

        </div>
        <div class="formBar">
            <ul>
                <li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
                <li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
            </ul>
        </div>
    </form>
</div>
